﻿<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="utf-8">
	<title>@ViewBag.Title - My ASP.NET MVC Application</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author" content="">
	<!-- Le styles -->
	@RenderSection("links", false)
    <!--[if IE 7]>
      <link rel="stylesheet" href="~/Content/font-awesome/css/font-awesome-ie7.css">
    <![endif]-->
	<style type="text/css">
		body
		{
			padding-top: 60px;
			padding-bottom: 40px;
			font-family: "Microsoft Yahei";
		}

		input,
		button,
		select,
		textarea {
			font-family: "Microsoft Yahei";
		}

		.ui-widget, .ui-widget button {
			font-family: "Microsoft Yahei";
		}
		@RenderSection("inlinestyle", false)
	</style>
	<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	<!-- Le fav and touch icons -->
	<link rel="shortcut icon" href="~/Content/img/icon/favicon.ico">
</head>
<body>
	<div class="navbar navbar-inverse navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container"><a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
				<span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar">
				</span></a><a class="brand" href="@Url.Action("Index", "Home")">任务管理系统</a>
				<div class="nav-collapse collapse">
                    <ul class="nav">
                        @if (HttpContext.Current.User.IsInRole("admin"))
                        { 
                        <li>@Html.ActionLink("创建新用户", "Register", "Account")</li>
                        <li>@Html.ActionLink("用户管理", "Users", "Account")</li>
                        <li>@Html.ActionLink("工房管理", "Index", "ShopFloor")</li>
                        }
                        <li>@Html.ActionLink("修改个人信息", "Update", "Account")</li>
                    </ul>
					<p class="navbar-text pull-right">@Html.Partial("_LogOnPartial")</p>
				</div>
				<!--/.nav-collapse -->
			</div>
		</div>
	</div>
	<div class="container">
		@RenderBody()
		<footer>
			<p> </p>
		</footer>
	</div>
	<!-- /container -->
	<!-- javascript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	@RenderSection("scripts", false)
</body>
</html>
